package com.ruoyi.cbs.project.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cbs.project.mapper.ProjectResumeMapper;
import com.ruoyi.cbs.project.domain.ProjectResume;
import com.ruoyi.cbs.project.service.IProjectResumeService;

/**
 * 项目复工申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-21
 */
@Service
public class ProjectResumeServiceImpl implements IProjectResumeService 
{
    @Autowired
    private ProjectResumeMapper projectResumeMapper;

    /**
     * 查询项目复工申请
     * 
     * @param id 项目复工申请主键
     * @return 项目复工申请
     */
    @Override
    public ProjectResume selectProjectResumeById(Long id)
    {
        return projectResumeMapper.selectProjectResumeById(id);
    }

    /**
     * 查询项目复工申请列表
     * 
     * @param projectResume 项目复工申请
     * @return 项目复工申请
     */
    @Override
    public List<ProjectResume> selectProjectResumeList(ProjectResume projectResume)
    {
        return projectResumeMapper.selectProjectResumeList(projectResume);
    }

    /**
     * 新增项目复工申请
     * 
     * @param projectResume 项目复工申请
     * @return 结果
     */
    @Override
    public int insertProjectResume(ProjectResume projectResume)
    {
        projectResume.setCreateTime(DateUtils.getNowDate());
        return projectResumeMapper.insertProjectResume(projectResume);
    }

    /**
     * 修改项目复工申请
     * 
     * @param projectResume 项目复工申请
     * @return 结果
     */
    @Override
    public int updateProjectResume(ProjectResume projectResume)
    {
        projectResume.setUpdateTime(DateUtils.getNowDate());
        return projectResumeMapper.updateProjectResume(projectResume);
    }

    /**
     * 批量删除项目复工申请
     * 
     * @param ids 需要删除的项目复工申请主键
     * @return 结果
     */
    @Override
    public int deleteProjectResumeByIds(Long[] ids)
    {
        return projectResumeMapper.deleteProjectResumeByIds(ids);
    }

    /**
     * 删除项目复工申请信息
     * 
     * @param id 项目复工申请主键
     * @return 结果
     */
    @Override
    public int deleteProjectResumeById(Long id)
    {
        return projectResumeMapper.deleteProjectResumeById(id);
    }
}
